//
//  SYRequestAPI+BaiBan.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/8/9.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYRequestAPI.h"

NS_ASSUME_NONNULL_BEGIN

@interface SYRequestAPI (BaiBan)


/**
 创建白板班级

 @param tutorInfoid 辅导班级id
 @param teacherAccountId 教师账号id
 @param success 1
 @param fail 0
 */
+ (void)bb_tencentCreateTencentChatGroupTutorInfoId:(NSString *)tutorInfoid
                                   teacherAccountId:(NSString *)teacherAccountId
                                            success:(void(^)(id dataList))success
                                               fail:(FailBlock)fail;


#pragma makr - 获取腾讯im信息

/**
 获取腾讯im信息

 @param token token
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServiceImInfoToken:(NSString *)token
                           success:(void(^)(id dataList))success
                              fail:(FailBlock)fail;


/**
 获取云点播签名 -- 上传

 @param token 签名
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServiceCloudPlaySignToken:(NSString *)token
                                  success:(void(^)(id dataList))success
                                     fail:(FailBlock)fail;


#pragma mark - 辅导相关接口
#pragma mark - 老师房间记录
/**
 老师键入房间

 @param accountId 老师id
 @param tutorRecordId 辅导班几id
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServiceJoinClassLessonAccountId:(NSString *)accountId
                                  tutorRecordId:(NSString *)tutorRecordId
                                        success:(void(^)(id dataList))success
                                           fail:(FailBlock)fail;


/**
 老师退出房间

 @param teacherRecordId 老师房间记录 从老师进入房间接口获取
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServiceExitClassLessonTeacherRecordId:(NSString *)teacherRecordId
                                              success:(void(^)(id dataList))success
                                                 fail:(FailBlock)fail;


/**
 跟新上课状态

 @param tutorRecordId 老师房间记录 从老师进入房间接口获取
 @param status  未上课 = 0,
                上课已完成 = 1,
                正在上课 = 2,
                上课未完成 = 3,
                未下课 = 4
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServiceSetTutorInfoStatusTutorRecordId:(NSString *)tutorRecordId
                                                status:(NSString *)status
                                               success:(void(^)(id dataList))success
                                                  fail:(FailBlock)fail;


/**
 根据辅导班级ID获取学生信息

 @param tutorId 辅导班级id
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorServicesSetTutorStudentInfoTutorId:(NSString *)tutorId
                                           success:(void(^)(NSMutableArray *dataListArr))success
                                              fail:(FailBlock)fail;


/**
 6.根据辅导班级ID获取资源列表

 @param tutorId 辅导班级ID
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorResourceInfoTutorId:(NSString *)tutorId
                         templateId:(NSString *)templateId
                            success:(void(^)(NSMutableArray *dataListArr))success
                               fail:(FailBlock)fail;

/**
 老师上课推送调用接口

 @param tutorId 辅导班id
 @param TutorRecordId 辅导次数
 @param RoomID 腾讯房间
 @param RoomIMID 群组id
 @param RoomName 辅导房间名称
 @param TeaAccount 辅导讲师腾讯imid
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorClassServicePushTutorId:(NSString *)tutorId
                          TutorRecordId:(NSString *)TutorRecordId
                                 RoomID:(NSString *)RoomID
                               RoomIMID:(NSString *)RoomIMID
                               RoomName:(NSString *)RoomName
                             TeaAccount:(NSString *)TeaAccount
                                success:(void(^)(BOOL isSuccess))success
                                   fail:(FailBlock)fail;


/**
 开始录制白板屏幕

 @param roomId 录屏id
 @param success 成功
 @param fail 失败
 */
+ (void)bb_TutorStartRecordRoomId:(NSString *)roomId
                          success:(void(^)(BOOL isSuccess,NSString *info))success
                             fail:(FailBlock)fail;


+ (void)bb_TutorStopRecordInfo:(NSString *)infoId
                       success:(void(^)(BOOL isSuccess,NSString *info))success
                          fail:(FailBlock)fail;


/**
 根据taskid获取视频连接

 @param taskid taskid 录制视频开始返回的id
 @param success 1
 @param fail 0
 */
+ (void)bb_TutorVideoUrlByTaskId:(NSString *)taskid
                         success:(void(^)(NSString *pathUrl))success
                            fail:(FailBlock)fail;

/// 暂停录制
/// @param taskId 需要停止录制的任务id
/// @param success 1
/// @param fail 0
+ (void)bb_TutorPauseRecordTaskId:(NSString *)taskId
                          success:(void(^)(NSString *pathUrl))success
                             fail:(FailBlock)fail;

/// 恢复录制
/// @param taskId 任务id
/// @param success 1
/// @param fail 0
+ (void)bb_TutorResumeRecordTask:(NSString *)taskId
                         success:(void(^)(NSString *pathUrl))success
                            fail:(FailBlock)fail;

@end

NS_ASSUME_NONNULL_END
